<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('Smstemplate/index')}">模板列表</a></li>
			<li class="active"><a href="{:U('Smstemplate/add')}">添加模板</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('Smstemplate/add_post')}">
			<fieldset>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 模板编号</label>
					<div class="controls">
						<input type="text" name="sms_code">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 模板名称</label>
					<div class="controls">
						<input type="text" name="sms_name">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">选项</label>
					<div class="controls">
						<a href="javascript:volid(' #VerificationCode# ')">验证码 </a>
						<a href="javascript:volid(' #Order# ')"> 订单号</a>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label"><b style="color:red;">* </b> 内容</label>
					<div class="controls">
						<textarea name="sms_content" rows="2" cols="20" id="content" class="inputtext" style="height: 100px; width: 500px;"></textarea>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('STATUS')}</label>
					<div class="controls">
						<label class="radio inline" for="active_true"><input type="radio" name="use_flg" value="1" checked id="active_true" />{:L('ENABLED')}</label>
						<label class="radio inline" for="active_false"><input type="radio" name="use_flg" value="0" id="active_false">{:L('DISABLED')}</label>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
				<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script>
        function volid(data) {
            var text = $('#content').val() + data;
            $('#content').val(text);
        }
	</script>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>